package com.tlgen.spring.controller;

import com.tlgen.spring.annotation.Autowired;
import com.tlgen.spring.annotation.RestController;
import com.tlgen.spring.service.SysDeptService;
import com.tlgen.spring.utils.SpeedSpringContextUtils;
import com.tlgen.tomcat.annotation.GetMapping;

@RestController
public class SysDeptController {

    @Autowired
    private SysDeptService sysDeptService;

    @GetMapping("/select")
    public String select() {
        SysDeptService bean = SpeedSpringContextUtils.getBean(SysDeptService.class);
        return bean.select();
    }

}
